<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="intoHead">
    <link th:href="@{/static/BJUI/themes/css/bootstrap.min.css}" rel="stylesheet" type="text/css"/>
    <!-- core - css -->
    <link th:href="@{/static/BJUI/themes/css/style.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/static/BJUI/themes/green/core.css}" id="bjui-link-theme" rel="stylesheet" type="text/css"/>
    <!-- plug - css -->
    <link th:href="@{/static/Plugins/kindeditor/themes/default/default.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/static/BJUI/plugins/colorpicker/css/bootstrap-colorpicker.min.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/static/BJUI/plugins/niceValidator/jquery.validator.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/static/BJUI/plugins/bootstrapSelect/bootstrap-select.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/static/BJUI/themes/css/FA/css/font-awesome.min.css}" rel="stylesheet" type="text/css"/>
    <!--[if lte IE 7]>
    <link th:href="@{/static/BJUI/themes/css/ie7.css}" rel="stylesheet" type="text/css"/>
    <![endif]-->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lte IE 9]>
    <script th:src="@{/static/BJUI/other/html5shiv.min.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/other/respond.min.js}" type="text/javascript"></script>
    <![endif]-->
    <!-- jquery -->
    <script th:src="@{/static/BJUI/js/jquery-1.7.2.min.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/jquery.cookie.js}" type="text/javascript"></script>
    <!--[if lte IE 9]>
    <script th:src="@{/static/BJUI/other/jquery.iframe-transport.js}" type="text/javascript"></script>
    <![endif]-->
    <!-- BJUI.all 分模块压缩版 -->
    <!-- <script src="@{/static/BJUI/js/bjui-all.js"></script> -->
    <!-- 以下是B-JUI的分模块未压缩版，建议开发调试阶段使用下面的版本 -->
    <script th:src="@{/static/BJUI/js/bjui-core.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-regional.zh-CN.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-frag.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-extends.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-basedrag.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-slidebar.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-contextmenu.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-navtab.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-dialog.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-taskbar.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-ajax.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-alertmsg.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-pagination.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-util.date.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-datepicker.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-ajaxtab.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-tablefixed.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-tabledit.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-spinner.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-lookup.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-tags.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-upload.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-theme.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-initui.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/js/bjui-plugins.js}" type="text/javascript"></script>

    <!-- plugins -->
    <!-- swfupload for uploadify && kindeditor -->
    <script th:src="@{/static/BJUI/plugins/swfupload/swfupload.js}" type="text/javascript"></script>
    <!-- kindeditor -->
    <script th:src="@{/static/Plugins/kindeditor/kindeditor-all.js}" type="text/javascript"></script>
    <script th:src="@{/static/Plugins/kindeditor/lang/zh_CN.js}" type="text/javascript"></script>
    <!-- colorpicker -->
    <script th:src="@{/static/BJUI/plugins/colorpicker/js/bootstrap-colorpicker.min.js}" type="text/javascript"></script>
    <!-- ztree -->
    <script th:src="@{/static/BJUI/plugins/ztree/jquery.ztree.all-3.5.js}" type="text/javascript"></script>
    <!-- nice validate -->
    <script th:src="@{/static/BJUI/plugins/niceValidator/jquery.validator.js}" type="text/javascript"></script>
    <script th:src="@{/static/BJUI/plugins/niceValidator/jquery.validator.themes.js}" type="text/javascript"></script>
    <!-- bootstrap plugins -->
    <script th:src="@{/static/BJUI/plugins/bootstrap.min.js}"></script>
    <script th:src="@{/static/BJUI/plugins/bootstrapSelect/bootstrap-select.min.js}" type="text/javascript"></script>
    <!-- icheck -->
    <script th:src="@{/static/BJUI/plugins/icheck/icheck.min.js}" type="text/javascript"></script>
    <!-- dragsort -->
    <script th:src="@{/static/BJUI/plugins/dragsort/jquery.dragsort-0.5.1.min.js}" type="text/javascript"></script>
    <!-- highcharts -->
    <script th:src="@{//static/BJUI/plugins/highcharts/highcharts.js}" type="text/javascript"></script>
    <script th:src="@{//static/BJUI/plugins/highcharts/highcharts-3d.js}" type="text/javascript"></script>
    <!-- ECharts -->
    <script th:src="@{//static/BJUI/plugins/echarts/echarts.js}" type="text/javascript"></script>
    <!-- other plugins -->
    <script th:src="@{/static/BJUI/plugins/other/jquery.autosize.js}" type="text/javascript"></script>
    <link th:href="@{/static/BJUI/plugins/uploadify/css/uploadify.css}" rel="stylesheet" type="text/css"/>
    <script th:src="@{/static/BJUI/plugins/uploadify/scripts/jquery.uploadify.min.js}" type="text/javascript"></script>
    <script th:src="@{/static/js/functions.js}"></script>
    <style type="text/css">
        tr {
            height: 32px;
            line-height: 32px
        }
        /* 优化表格行高 */
        .resize-head {
            height: 0;
        }
        /* 修正表格行距增加后表头显示问题 */
        .panel-body td {
            line-height: 1.5;
            font-size: 14px;
        }
        /* kindEditor文字行距 */
        .panel-body p {
            line-height: 1.5;
            font-size: 14px;
        }
        /* kindEditor文字行距 */
    </style>
    <!-- init -->
    <script type="text/javascript">
        $(function() {
            console.log('Do function!!!!!!!!')
            BJUI.init({
                JSPATH: '/static/BJUI/',
                PLUGINPATH: '/static/BJUI/plugins/',
                loginInfo: {url: 'login_timeout.html', title: '登录', width: 400, height: 200}, // 会话超时后弹出登录对话框
                statusCode: {ok: 200, error: 300, timeout: 301}, //[可选]
                ajaxTimeout: 50000, //[可选]全局Ajax请求超时时间(毫秒)
                alertTimeout: 1000,  //[可选]信息提示[info/correct]自动关闭延时(毫秒)
                pageInfo: {
                    pageCurrent: 'pageIndex',
                    pageSize: 'pageSize',
                    orderField: 'orderField',
                    orderDirection: 'orderDirection'
                }, //[可选]分页参数
                keys: {statusCode: 'statusCode', message: 'message'}, //[可选]
                ui: {showSlidebar: true, clientPaging: true}, //[可选]clientPaging:在客户端响应分页及排序参数
                debug: true,    // [可选]调试模式 [true|false，默认false]
                theme: 'purple' // 若有Cookie['bjui_theme'],优先选择Cookie['bjui_theme']。皮肤[五种皮肤:default, orange, purple, blue, red, green]
            })
            //时钟
            var today = new Date(), time = today.getTime()
            $('#bjui-date').html(today.formatDate('yyyy/MM/dd'))
            setInterval(function () {
                today = new Date(today.setSeconds(today.getSeconds() + 1))
                $('#bjui-clock').html(today.formatDate('HH:mm:ss'))
            }, 1000)
        })
        //菜单-事件
        function MainMenuClick(event, treeId, treeNode) {
            if (treeNode.isParent) {
                var zTree = $.fn.zTree.getZTreeObj(treeId)
                zTree.expandNode(treeNode)
                return
            }
            if (treeNode.target == 'dialog') {
                $(event.target).dialog({id: treeNode.tabid, url: treeNode.url, title: treeNode.name})
            }
            else {
                $(event.target).navtab({
                    id: treeNode.tabid,
                    url: treeNode.url,
                    title: treeNode.name,
                    fresh: treeNode.fresh,
                    external: treeNode.external
                })
            }
            event.preventDefault()
        }
    </script>
</head>
</html>